package com.situ.company.web220111.employee.dao;

import com.situ.company.web220111.department.model.DepartmentModel;
import com.situ.company.web220111.employee.model.EmployeeModel;
import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.List;

public interface IEmployeeDao {

    /**
     * 添加记录
     *
     * @param model
     * @return String
     */
    String insert(EmployeeModel model);

    /**
     * 根据主键删除
     *
     * @param model
     * @return String
     */
    String deleteByCode(EmployeeModel model);

    String delete(EmployeeModel model);

    /**
     * 根据主键修改字段
     *
     * @param model
     * @return String
     */
    String updateAll(EmployeeModel model);

    /**
     * 根据主键修改部分字段
     *
     * @param model
     * @return
     */
    String updateActive(EmployeeModel model);

    /**
     * 根据多条件模糊查询记录
     *
     * @param model
     * @return List<DepartmentModel>
     */
    List<EmployeeModel> selectList(EmployeeModel model);

    /**
     * 根据主键查询一条记录
     *
     * @param model
     * @return DepartmentModel
     */
    EmployeeModel selectModel(EmployeeModel model);

    /**
     * 根据主键查询得到记录条数
     * @param model
     * @return
     */
    Integer selectCount(EmployeeModel model);

    String resetPass(EmployeeModel model);
}
